This document is in progress. Please see also the "cgi_params.html" document.
path_args
char * path_args; /* '----' */
The characters in the url following a '$' and before '?' or '#'. This parameter is automatically decoded using the CGIDecodeSpecialChars function.
http_search_args
char * http_search_args; /* 'kfor' */
The characters in the url following a '?' and before '#'. This parameter is automatically decoded using the CGIDecodeSpecialChars function. If the HTTP get method is used, and form support and auto-processing are set on in the compiling options, this parameter will be parsed into the form fields array.
username
char * username; /* 'user' */
The (presumably) authenticated user name. Authentication is done through Realms definitions. See MacHTTP or WebSTAR documentation on Realms.
password
char * password; /* 'pass' */
The authenticated user password. Companion to 'username'.
from_user
char * from_user; /* 'frmu' */
Email address of user (client). Not all client browsers return this information.
client_address
char * client_address; /* 'addr' */
IP address (four integers separated by dots) or domain name of the client.
post_args
char * post_args; /* 'post' */
The characters 'posted' when the HTTP post method is used. This parameter is not automatically decoded. However, if the method is post and form support and auto-processing are set on in the compiling options, this parameter will be parsed into the form fields array.
method
HTTPMethod method; /* 'meth' */
The method used by the client to send it's request/data to the server.
A special typdef'd enumeration has been declared for the HTTP method. It's definition is found the "CGI.h" file.
The method used will normally be "GET", defined as the string constant 'kCGIHTTPMethodGet' and enumerated as 'HTTP_get'.
Form data is usually sent using the "POST" method, which is defined as the string constant 'kCGIHTTPMethodPost' and enumerated as 'HTTP_post'.
server_name
char * server_name; /* 'svnm' */
short server_port; /* 'svpt' */
char * script_name; /* 'scnm' */
char * content_type; /* 'ctyp' */
char * referer; /* 'refr' */
char * user_agent; /* 'Agnt' */
char * action; /* 'Kact' */
char * action_path; /* 'Kapt' */
char * client_ip; /* 'Kcip' */
char * full_request; /* 'Kfrq' */
char * version; /* 'Pvrs' */
long connection; /* 'Kcid' */
CGIFormField * formFields; /* the fields from form submission */